import {defineStore} from 'pinia'
import {ref} from 'vue'
import {type PageRequest} from '@/types/PageRequest'
import type { TabBar } from './TabBarConfigTypes'
import {TabBarType} from './TabBarConfigTypes'

export const useTabBarConfigStore =  defineStore('TabBarConfigStore', ()=>{
    
    let currentPage = ref<TabBar>({
        id:"",
        path: "",
        image: "",
        activeImage: "",
        text: "",
        type: TabBarType.default
    })

    let tabBarList = ref<TabBar[]>()

    let disableTabBarList = ref<TabBar[]>([])

    return {
        tabBarList,
        currentPage,
        disableTabBarList,
    }
},{
    persist: true,
})

